

import { request } from '@/utils/request'
export default ({
    //马克思钥匙
    getInitKey() {
        return request("/sign/login/get", "post")
    },
    getNumber(status) {
        return request("/sign/captcha", "get", status,)
    },
    login_signin(data) {
        return request("/sign/login/signin", "post", data,)
    },
    session_fetch(data) {//初始化会话
        return request("/sign/access/session/fetch", "get", data,)
    },
    loginHistory_fetch(data) {//系统登录日志
        return request("/sign/historys/loginHistory/fetch", "get", data,)
    },
    loginAppsHistory_fetch(data) {//应用访问日志
        return request("/sign/historys/loginAppsHistory/fetch", "get", data,)
    },
    thirdLogin(oneParam, rememberMe) {
        return request("/sign/login/get?_allow_anonymous=+" + oneParam + "&remember_me=" + rememberMe)
    },
    goThirdLogin(provider) {
        return request("/sign/logon/oauth20/authorize/" + provider)
    },
    terminate(data) {
        return request("/sign/access/session/terminate", "delete", data)
    },
    oauthv20(data) {
        return request("/sign/authz/oauth/v20/approval_confirm/get/" + data, "get")
    },
    getMenuTree() {
        return request("/sign/mxkMenu/getMenuTree", "get")
    },
    approval(data) {
        return request("/sign/authz/oauth/v20/authorize/approval?user_oauth_approval=" + data.user_oauth_approval + "&client_id=" + data.clientId, "post", data)
    },
    getMessaageCode(data) {
        // sign/forgotpassword/produceOtp

        return request("/sign/forgotpassword/produceOtp?mobile=" + data.mobile + "&state=" + data.state + "&captcha=" + data.captcha, "post")
    },
    //修改密码
    //sign/forgotpassword/setpassword
    updatePassword(data) {
        // sign/forgotpassword/produceOtp

        return request("/sign/forgotpassword/setpassword?forgotType=mobile&userId=" + data.userId + "&username=" + data.username + "&state=" + data.state + "&password=" + data.password + "&confirmPassword=" + data.confirmPassword + "&otpCaptcha=" + data.otpCaptcha, "post")
    },


    //获取新平台token

    getNewToken() {

    },
    ///user/login
    getlogin(data) {
        // sign/forgotpassword/produceOtp
        return request("/sign/user/login", "post", data)
    },
    //获取树节点菜单
    getNewTreeMenus() {
        return request("/sign/getJzGMenuTree", "get")
    },

    //获取系统可用权限
    getUserPermissionInfo() {
        return request("/sign/getUserPermissionInfo", "get")
    },
    //在岗教师
    //  //t-jzg/getOnGuardFaculty
    getOnGuardFaculty(data) {
        return request("/sign/t-jzg/getOnGuardFaculty", "get", data)
    },
    //获取教职工详情
    ///t-jzg/getOnGuardFacultyInfo
    getOnGuardFacultyInfo(data) {
        return request("/sign/t-jzg/getOnGuardFacultyInfo", "get", data)
    },
    //审查身份证
    ///t-jzg/examineCard
    examineCard(data) {
        return request("/sign/t-jzg/examineCard", "post", data)
    },
    //获取教职工初始数据///t-jzg/getFacultyinitial
    getFacultyinitial(data) {
        return request("/sign/t-jzg/getFacultyinitial", "get", data)
    },
    //新增教职工 ///t-jzg/saveFaculty
    saveFaculty(data) {
        return request("/sign/t-jzg/saveFaculty", "post", data)
    },
    //修改身份证 ///t-jzg/updateFacultyId
    updateFacultyId(data) {
        return request("/sign/t-jzg/updateFacultyId", "post", data)
    },

    ///t-jzg/moveFacultyList 调动
    moveFacultyList(data) {
        return request("/sign/t-jzg/moveFacultyList", "get", data)
    },
    moveSchoolFacultyList(data) {
        return request("/sign/t-jzg/moveSchoolFacultyList", "get", data)
    },
    //moveSchoolFacultyList

    ///t-jzg/moveFaculty
    moveFaculty(data) {
        return request("/sign/t-jzg/moveFaculty", "post", data)
    },
    //  //t-jzg/moveFacultyConsent 同意教职工
    moveFacultyConsent(data) {
        return request("/sign/t-jzg/moveFacultyConsent", "post", data)
    },

    //获取系统用户///t-jzg/getUserList
    getUserList(data) {
        return request("/sign/t-jzg/getUserList", "get", data)
    },
    saveUserList(data) {
        return request("/sign/t-jzg/saveUserList", "post", data)
    },
    removeUerList(data) {
        return request("/sign/t-jzg/removeUerList", "post", data)
    },
    ///t-jzg/removeUerList

    // //t-jzg/saveUserList

    ///jw-management/getSemester
    getSemester(data) {
        return request("/sign/jw-management/getSemester", "get", data)
    },
    getGrade(data) {
        return request("/sign/jw-management/getGrade", "get", data)
    },
    getSubject(data) {
        return request("/sign/jw-management/getSubject", "get", data)
    },
    ///jw-management/getSubject
    // //jw-management/getGrade
    getTeacherSubject(data) {
        return request("/sign/jw-management/getTeacherSubject", "get", data)
    },

    getXzGl(data) {
        return request("/sign/jw-management/getXzGl", "get", data)
    },
    getXzXkPz(data) {
        return request("/sign/jw-management/getXzXkPz", "get", data)
    },
    getXzXkZB(data) {
        return request("/sign/jw-management/getXzXkZB", "get", data)
    },
    getXzXkZBNum(data) {
        return request("/sign/jw-management/getXzXkZBNum", "get", data)
    },
    ///jw-management/getXzXkZBNum
    ///jw-management/getXzXkZB
    ///jw-management/getXzXkPz
    ///jw-management/getXzGl
    ///jw-management/getTeacherSubject
    // //utils/getAllDistList
    getAllDistList(data) {
        return request("/sign/utils/getAllDistList", "get", data)
    },

    getIsNotSetSubject(data) {
        return request("/sign/jw-xq-kskc/getIsNotSetSubject", "get", data)
    },
    saveSubject(data) {
        return request("/sign/jw-xq-kskc/saveSubject", "post", data)
    },
    delSubject(data) {
        return request("/sign/jw-xq-kskc/delSubject", "post", data)
    },
    ///jw-xq-kskc/delSubject
    ///jw-xq-kskc/saveSubject
    ///jw-xq-kskc/getIsNotSetSubject
    ///t-jzg/updateFaculty
    updateFaculty(data) {
        return request("/sign/t-jzg/updateFaculty", "post", data)
    },
    saveSubject2(data) {
        return request("/sign/jw-xq-bjkcbzr/saveSubject", "post", data)
    },
    updateSubject2(data) {
        return request("/sign/jw-xq-bjkcbzr/updateSubject", "post", data)
    },
    delSubject2(data) {
        return request("/sign/jw-xq-bjkcbzr/delSubject", "post", data)
    },
    delZdTeacherSubject(data) {
        return request("/sign/jw-xq-bjkcbzr/delZdTeacherSubject", "post", data)
    },
    ///jw-xq-bjkcbzr/delZdTeacherSubject
    // /jw-xq-bjkcbzr/delSubject
    // //jw-xq-bjkcbzr/updateSubject
    // /jw-xq-bjkcbzr/saveSubject

    ///jw-management/getSubjectAll
    getSubjectAll(data) {
        return request("/sign/jw-management/getSubjectAll", "get", data)
    },
    selectTeacherSubject(data) {
        return request("/sign/jw-xq-kskc/selectTeacherSubject", "get", data)
    },
    ///jw-xq-bjkcbzr/getClassSubject
    getClassSubject(data) {
        return request("/sign/jw-xq-bjkcbzr/getClassSubject", "get", data)
    },
    ///jw-xq-kskc/selectTeacherSubject
    delTeacherSubject(data) {
        return request("/sign/jw-xq-kskc/delTeacherSubject", "post", data)
    },
    ///jw-xq-kskc/delTeacherSubject
    ///jw-xq-kskc/saveTeacherSubject
    saveTeacherSubject(data) {
        return request("/sign/jw-xq-kskc/saveTeacherSubject", "post", data)
    },

    updateClassSubjectZd(data) {
        return request("/sign/jw-xq-bjkcbzr/updateClassSubjectZd", "post", data)
    },
    // //jw-xq-bjkcbzr/updateClassSubjectZd
    getStudentExist(data) {
        return request("/sign/t-stu/getStudentExist", "get", data)
    },
    ///t-stu/getStudentExist
    getXzm(data) {
        return request("/sign/t-stu/getXzm", "get", data)
    },

    saveStu(data) {
        return request("/sign/t-stu/saveStu", "post", data)
    },
    ///t-stu/saveStu
    ///t-stu/getXzm
    // //t-stu/selectStu
    selectStu(data) {
        return request("/sign/t-stu/selectStu", "get", data)
    },
    selectSchoolClassStudent(data) {
        return request("/sign/t-stu/selectSchoolClassStudent", "get", data)
    },
    //t-stu/selectSchoolClass
    selectSchoolClass(data) {
        return request("/sign/t-stu/selectSchoolClass", "get", data)
    },
    ///t-stu/selectSchoolClass
    // //t-stu/selectSchoolClassList
    selectSchoolClassList(data) {
        return request("/sign/t-stu/selectSchoolClassList", "get", data)
    },
    selectSchoolClassZbCourseInfo(data) {
        return request("/sign/t-stu/selectSchoolClassZbCourseInfo", "get", data)
    },

    selectSchoolClassZb(data) {
        return request("/sign/t-stu/selectSchoolClassZb", "get", data)
    },
    ////t-stu/selectSchoolClassZbCourseInfo
    ///t-stu/selectSchoolClassZb
    ///t-stu/selectHistoryStu
    selectHistoryStu(data) {
        return request("/sign/t-stu/selectHistoryStu", "get", data)
    },
    selectHistoryStuInfo(data) {
        return request("/sign/t-stu/selectHistoryStuInfo", "get", data)
    },
    ///t-stu/selectHistoryStuInfo
    ///T-stuExcel/exportStuInfo
    exportStuInfo(data) {
        return request("/sign/T-stuExcel/exportStuInfo", "get", data)
    },

    exportZbStuInfo(data) {
        return request("/sign/T-stuExcel/exportZbStuInfo", "get", data)
    },

    updateXzFb(data) {
        return request("/sign/t-stu/updateXzFb", "post", data)
    },
    updateZdFb(data) {
        return request("/sign/t-stu/updateZdFb", "post", data)
    },
    ///t-stu/updateZdFb

    ///t-stu/updateXzFb

    ///T-stuExcel/exportZbStuInfo
    ///t-stu/selectXkClassXk
    selectXkClassXk(data) {
        return request("/sign/t-stu/selectXkClassXk", "get", data)
    },

    selectKsStudent(data) {
        return request("/sign/t-stu/selectKsStudent", "get", data)
    },

    getJwUser(data) {
        return request("/sign/jw-management/getJwUser", "get", data)
    },
    ///t-stu/selectKsStudent
    ///jw-management/getJwUser
    ///T-stuExcel/exportStuKsInfo
    exportStuKsInfo(data) {
        return request("/sign/T-stuExcel/exportStuKsInfo", "get", data)
    },


    getXqPhase(data) {
        return request("/sign/jw-admin-management/getXqPhase", "get", data)
    },
    ///jw-admin-management/getXqPhase

     // 获取学科字段分类
     async fieldClassification() {
        return request("/sign/jw-admin-management/getXqPhaseClassify",'get')
     },
     getTeacherRk(data) {
        return request("/sign/jw-admin-management/getTeacherRk", "get", data)
    },
     ////jw-admin-management/getTeacherRk

     deleteNjXq(data) {
        return request("/sign/jw-admin-management/deleteNjXq", "get", data)
    },
     ////jw-admin-management/deleteNjXq
     ////jw-admin-management/getSchoolClassInfo
     getSchoolClassInfo(data) {
        return request("/sign/jw-admin-management/getSchoolClassInfo", "get", data)
    },
    authenjw(data){
        return request("/sign/authen/jw", "get",data)
    },
 
})
